package com.heima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.heima.pojo.SkuClass;
import com.heima.pojo.dto.SkuClassDto;
import com.heima.pojo.vo.SkuClassVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SkuClassMapper extends BaseMapper<SkuClass> {
    @Insert("insert into tb_sku_class(class_name) values(#{className})")
    void add(SkuClassDto skuClassDto);

    Page<SkuClassVo> search(String className);

}
